package com.qw.qrweb.service;

import com.qw.qrweb.model.dto.DayVisits;
import com.qw.qrweb.model.dto.RegionDTO;
import com.qw.qrweb.model.entity.LogEntity;

import java.util.List;
import java.util.Map;

public interface LogService {

    int addLog(String ip);

    List<LogEntity> getLogs();

    List<LogEntity> getLogsToday();

    List<LogEntity> getLogsLastHour();

    List<DayVisits> getVisitsLastWeek();

    Map<String, Integer> getHourlyTrafficStats();

    List<LogEntity> getLogsLast5Minutes();

    List<LogEntity> getLogsLast10Minutes();

    List<LogEntity> getLogsLast30Minutes();

    List<RegionDTO> getLogsRegions();

    String getRegionByIp(String ip);

    void updateRegionsForIps();

    int countNewContentViews();

}
